package com.ermao.service;

import com.ermao.pojo.result.admin.AdminGlobalResult;
import com.ermao.pojo.result.user.UserInGetInformation;
import com.ermao.pojo.result.user.UserInPunchRank;

import java.util.List;

/**
 * @author Ermao
 * Date: 2021/9/5 10:35
 */
public interface AdminService {

	boolean login(Integer accountNumber, String password);

	AdminGlobalResult getGlobalInformation();

	List<UserInPunchRank> getUsersInPunchRank(Integer number);

	UserInGetInformation getUserInformationByAccountNumber(Integer accountNumber);

	boolean updateUserPassword(Integer accountNumber, String password);

	boolean updateUserNickname(Integer userId, String nickname);
}
